import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import axios from "./settings/axios";
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import store from './store/index.js'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

const operation = require("./js/sys/preOperation");
operation();
const app = createApp(App);


app.use(router).mount('#app');
app.config.globalProperties.$http=axios;
// app.use(ElementPlus,{ size: 'small', zIndex: 3000 })
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
app.use(ElementPlus,{ size: 'small', zIndex: 3000 });
app.use(store);

// const operation = require("./js/sys/preOperation");
// operation();

//
// import { createApp } from 'vue'
// import router from './router'
//
// createApp().use(router).mount('#app')
